import { BaseService } from './base-service'

class VformService extends BaseService{
    selectViewList(params) {
        return this.request({
            method: 'get',
            url: `/api/selectViewList`,
            params
        })
   }
   addTableRecords(data) {
        return this.request({
            method: 'post',
            url: `/api/addTableRecords`,
            data
        })
    }
   /**
    * 上传文件
    *
    * @param data 文件上传参数
    * @returns 返回上传结果
    */
    uploadFile(data) {
        return this.request({
            method: 'post',
            url: `/api/uploadFile`,
            data
        })
    }
    selectImage(params) {
        return this.request({
            method: 'get',
            url: `/api/selectImage`,
            params
        })
    }

}

export const vformService = new VformService()
